<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$this->title?></title>

</head>

	<style>
		body{font-size:30px; font-family:"Microsoft YaHei";}
	</style>

<body>
	<br /><br/>
	<table border="1" width="100%">
		<tr align="center">
			<td>日期</td>
			<td>总量</td>
			<td>排重后总数</td>
			<td>已分配</td>
			<td>占比</td>
		</tr>
		<?php if(!empty($this->data)):?>
		<?php foreach($this->data as $date => $data):?>
		<tr align="center">
			<td><?=$date?> <?=$data['date']?></td>
			<td><?=$data['total']?></td>
			<td><?=$data['uni']?></td>
			<td><?=$data['given']?></td>
			<td><?=round($data['given']/$data['uni']*100)."%"?></td>
		</tr>
		<?php endforeach;?>
		<?php endif;?>
	</table>
	<br />
	<div align="center">近15日懂车帝线索获得量Top50</div>
	<br />
	<table border="1" width="100%">
		<tr align="center">
			<td>城市</td>
			<td>经销商</td>
			<td>数量</td>
		</tr>
		<?php if(!empty($this->data2)):?>
		<?php foreach($this->data2 as $data):?>
		<tr align="center">
			<td><?=$data['city_name']?></td>
			<td><?=$data['dealer_name']?></td>
			<td><?=$data['ct']?></td>
		</tr>
		<?php endforeach;?>
		<?php endif;?>
	</table>
</body>
</html>